package util;
 
public class Constants {
	public static final String dbUrl = "jdbc:mysql://localhost:3306/leavedb";
	public static final String dbUserName = "root";
	public static final String dbPassword = "password"; 
	public static final String dbDriverPath = "com.mysql.jdbc.Driver";
	
	public static final short STATUS_SHOW = 1;
	public static final short STATUS_HIDDEN = 2;
	
	public static final short LEAVE_APPLICATION_STATUS_ALL = 0;
	public static final short LEAVE_APPLICATION_STATUS_APPROVED = 1;
	public static final short LEAVE_APPLICATION_STATUS_APPLIED = 2;
	public static final short LEAVE_APPLICATION_STATUS_CANCELED = 3;
	public static final short LEAVE_APPLICATION_STATUS_REJECTED = 4;
	public static final short LEAVE_APPLICATION_STATUS_UPDATED = 5;
	
	public static final String homePage = "/Login/staff";
	
	public enum ViewScreen{
		Leavetype,
		Staff,
		leaveEntitlement,
		Approval
	}
	
	/*public enum UserType{
		Administrator,
		Staff,
		Manager
	}
	
	public static short userTypeToShort(UserType userType){
		short result = 2; // default is staff
		
		switch(userType){
			case Administrator:
				result = 1;
				break;
			case Manager:
				result = 3;
				break;
		}
		
		return result;
	}*/
}
